package jastgen.nodes;

import static java.util.Collections.unmodifiableList;

import java.util.List;

public class InterfaceDef {

	private final Type        name;
	private final List<Field> fields;

	public InterfaceDef(
			final Type        name,
			final List<Field> fields)
	{
		this.name = name;
		this.fields = unmodifiableList(fields);
	}

	public String getName() {
		return name.toString();
	}

	public String getBaseName() {
		return name.getName();
	}

	public String getTypeParamsString() {
		return name.getTypeParamsString();
	}

	public List<Field> getFields() {
		return fields;
	}
}
